import { connect } from "react-redux";
import { Login } from "../components";
import { success,fail } from "../actions";

const mapStateToProps = state => {
  //4.将仓库里state转化为props，组件间数据传递只能通过props
  console.log('container',state.login)
  return {
    boo: state.login,
  };
};


export default connect(
  mapStateToProps,{success,fail}
)(Login);
